<?php

class TDate extends BaseDescriptor
{
	public $autoNow;
	
	public function __construct($field,$autoNow = false,$default=null)
	{
		$this->autoNow = $autoNow;
		parent::__construct($field,'DATETIME',$default,0);
	}
	
	protected function makeType()
	{
		return $this->type.' ';
	}

	public function makeValue($value)
	{
		return $value;
	}	
	
	public function __toString()
	{
		return $this->makeField().$this->makeType().$this->makeNull().$this->makeDefault();
	}		
}

?>